<?php
$server="localhost";
$uname="root";
$pwd="123456";

$ulinix = mysqli_connect($server,$uname,$pwd);

if($ulinix){
    $a="create database tawuz";
    $yezix=mysqli_query($ulinix,$a);
    if($yezix){
        echo "数据库创建成功!";
    }else{
        echo "mysql 连接成功，但是数据库创建语句有误：".mysqli_error($ulinix);
    }
    mysqli_close($ulinix);
}else{
    echo  "yok" . mysqli_connect_error();
}




